﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    /// <summary>
    /// 充值系统 订单主表操作
    /// </summary>
    public class OrderMaster
    {
        #region code
        public OrderMaster()
        { }
        DAL.OrderMaster dal = new DAL.OrderMaster();
        /// <summary>
        /// 增加订单信息
        /// </summary>
        /// <param name="model">订单信息实体</param>
        /// <returns>是否执行成功</returns>
        public bool OrderMasterAdd(MODEL.OrderMaster model)
        {
            return dal.OrderMasterAdd(model);
        }
        /// <summary>
        /// 订单主表列表
        /// </summary>
        /// <returns>订单主表列表</returns>
        public DataSet OrderMasterList()
        {
            return dal.OrderMasterList();
        }
        /// <summary>
        /// 订单主表列表
        /// </summary>
        /// <param name="userId">用户编号</param>
        /// <returns>订单主表列表</returns>
        public DataSet OrderMasterList(string userId)
        {
            return dal.OrderMasterList(userId);
        }
        #endregion
    }
    /// <summary>
    /// 充值系统 订单副表
    /// </summary>
    public class OrderDeputy
    {
        #region code
        public OrderDeputy()
        { }
        DAL.OrderDeputy dal = new DAL.OrderDeputy();
        /// <summary>
        /// 订单副表信息增加
        /// </summary>
        /// <param name="model">订单副表信息实体</param>
        /// <returns>是否执行成功</returns>
        public bool OrderDeputyAdd(MODEL.OrderDeputy model)
        {
            return dal.OrderDeputyAdd(model);
        }
        /// <summary>
        /// 订单副表列表
        /// </summary>
        /// <returns>订单副表列表</returns>
        public DataSet OrderDeputyList()
        {
            return dal.OrderDeputyList();
        }
        /// <summary>
        /// 订单副表列表
        /// </summary>
        /// <param name="orderId">订单主表编号</param>
        /// <returns>订单副表列表</returns>
        public DataSet OrderDeputyList(string orderId)
        {
            return dal.OrderDeputyList(orderId);
        }
        #endregion
    }
    public class WalletMaster
    {
        public WalletMaster()
        { }
        public DataSet WalletList()
        {
            return new DAL.WalletMaster().WalletList();
        }
        public DataSet WalletList(MODEL.WalletMaster model, string idName)
        {
            return new DAL.WalletMaster().WalletList(model, idName);
        }
    }
    public class WalletDeputy
    {
        public WalletDeputy()
        { }
        public bool WalletDeputyAdd(MODEL.WalletDeputy model)
        {
            return new DAL.WalletDeputy().WalletDeputyAdd(model);
        }
        public DataSet WalletDeputyList(string describeStr)
        {
            return new DAL.WalletDeputy().WalletDeputyList(describeStr);
        }
        public DataSet WalletDeputyList(string year, string month, string day)
        {
            return new DAL.WalletDeputy().WalletDeputyList(year, month, day);
        }
        public DataSet WalletDeputyList(MODEL.WalletDeputy model, string idName)
        {
            return new DAL.WalletDeputy().WalletDeputyList(model, idName);
        }
    }
}
